﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Services;

namespace VCN
{
    public partial class Home : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
        [WebMethod]
        public string get_image_slide(int ip_no)
        {
            VCN.App.DataAccessLayer.ImageSlideDAO v_img_dao = new VCN.App.DataAccessLayer.ImageSlideDAO();
            VCN.App.DataTransferObjects.ImageSlide v_img_obj = new VCN.App.DataTransferObjects.ImageSlide();
            DataTable v_dt = new DataTable();
            v_dt = v_img_dao.SelectByOrder(ip_no);
            if (v_dt.Rows.Count != 0)
                return v_dt.Rows[0]["Image"].ToString();
            else return "";
        }
        
    }
}
